package com.javabaas.server.novel_server.book.entity;

import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface BookBodyRepository extends MongoRepository<BookBody, String> {

    List<BookBody> findByBook(String book, Sort sort);

    List<BookBody> findByBook(String book, Pageable pageable);

    BookBody findByBookAndIndexEquals(String book, Integer index);

}
